import http from '../../utils/axios'
//添加产品
export function productAdd(query:any) {
  return http.request({
    url: '/product/add',
    method: 'post',
    data: query
  })
}
//修改产品
export function productUpdate(query:any) {
  return http.request({
    url: '/product/update',
    method: 'post',
    data: query
  })
}
//删除产品
export function productDel(query:any) {
  return http.request({
    url: '/product/del',
    method: 'post',
    data: query
  })
}
//产品上下线
export function productStatus(query:any) {
  return http.request({
    url: '/product/status',
    method: 'post',
    data: query
  })
}
//获取流程列表
export function flowList(query:any) {
  return http.request({
    url: 'flow/list',
    method: 'post',
    data: query
  })
}
//彻底删除产品
export function productRemove(query:any) {
  return http.request({
    url: '/product/remove',
    method: 'post',
    data: query
  })
}
//还原产品
export function productRestore(query:any) {
  return http.request({
    url: '/product/restore',
    method: 'post',
    data: query
  })
}